package com.jr.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Task {
    private Integer taskId;
    private Integer userId;
    private String title;
    private String description;
    private String type; // order_reminder, vaccination_reminder, checkup_reminder, custom
    private LocalDateTime dueDate;
    private Boolean isCompleted;
    private String priority; // low, medium, high, urgent

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;
}